cmake_minimum_required(VERSION 2.4)

project(logger)

include_directories(
	${logger_SOURCE_DIR}/logger
	${Boost_INCLUDE_DIRS}
	)

set(SOURCES
	"source/Log.cpp"
	"source/LogStream.cpp"
	"source/Builder.cpp"

	"source/LogRunner.cpp"
	"source/LogDispatcher.cpp"

	# loggers
	"source/logger/OStreamLogger.cpp"
	"source/logger/FileLogger.cpp"

	# formatters
	"source/formatter/Formatter.cpp"
	"source/formatter/StringFormatter.cpp"
	"source/formatter/DatetimeFormatter.cpp"

	# logger creator
	"source/logger_creator/OStreamLoggerCreator.cpp"
	"source/logger_creator/FileLoggerCreator.cpp"

	# formatter creator
	"source/formatter_creator/StringFormatterCreator.cpp"
	"source/formatter_creator/DatetimeFormatterCreator.cpp"

	# perf
	"source/perf/PerfObject.cpp"
	"source/perf/PerfScope.cpp"

	"source/detail/LogFormat.cpp"
	"source/detail/LogPriorityHelper.cpp"
	"source/detail/OStreamLoggerScope.cpp"

	"source/LogBuilder.cpp"
	)

SET(LIBRARY_OUTPUT_PATH ${logger_BINARY_DIR}/lib)

add_library(${PROJECT_NAME} ${SOURCES})

add_subdirectory(test)

